Skip to content

add/guardrail-for-octo-calls#484

Open
Micha Hobert (Isengo1989) wants to merge 3 commits intomainfrom
guard/branches
Open

add/guardrail-for-octo-calls#484
Micha Hobert (Isengo1989) wants to merge 3 commits intomainfrom
guard/branches

Conversation

@Isengo1989
Copy link
Copy Markdown
Contributor

This pull request adds a guard step to the manual_versioning.yml GitHub Actions workflow to ensure that the provided Shopware version matches the expected version pattern for the target branch. The workflow jobs for generating schemas will now only run if the guard check passes, preventing version mismatches.

Workflow validation improvements:

  • Added a new guard job that checks if the shopware_version input matches the expected version pattern for the current branch (e.g., v6.7.x for latest, v6.6.x for v6.6). The job sets an output (proceed) that determines whether subsequent jobs should run.
  • Updated all schema generation jobs (generate-trunk, generate-commercial-trunk, generate-digitalsalesroom-trunk, generate-customproducts-trunk) to depend on the guard job and only proceed if the guard's proceed output is true, ensuring version consistency across branches.

TLDR: We got PRs on latest from 6.6.x - this stops it.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a guard step to the manual versioning workflow so schema-generation jobs only run when the provided shopware_version matches the expected version family for the currently selected branch.

Changes:

  • Introduces a new guard job that validates inputs.shopware_version against a branch-specific regex and outputs proceed.
  • Updates all schema generation jobs to needs: guard and gate execution on needs.guard.outputs.proceed == 'true'.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/manual_versioning.yml Outdated
Comment thread .github/workflows/manual_versioning.yml Outdated
Comment thread .github/workflows/manual_versioning.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Isengo1989
Copy link
Copy Markdown
Contributor Author

Bojan Rajh (@bojanrajh) wdyt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Improvement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants